package com.sweetpotato.games;

import com.sweetpotato.object.Computer;
import com.sweetpotato.object.Person;
import com.sweetpotato.service.StoneScissorClothlmpl;
import java.util.Random;
import java.util.Scanner;

public class PlayGames {
    public static <StoneScissorClothImpl> void main(String[] args) {
        //人-- 机 对战
        Person james = new Person();
        james.setName("James");
        Scanner input = new Scanner(System.in);
        james.setBodyLanguage(input.nextInt());

        Person tomes = new Person();
        tomes.setName("James");
        Scanner input2 = new Scanner(System.in);
        tomes.setBodyLanguage(input2.nextInt());

        Computer computer1 = new Computer();
        computer1.setIp("192.168.1.1");
        Random random = new Random();
        computer1.setNumber(random.nextInt(3));

        StoneScissorClothImpl standard = new StoneScissorClothImpl();

        //对应人的输赢平，0-输，1-赢，2-平
        switch (standard.gameStandardOfPerson(james.getBodyLanguage(),computer1.getNumber())){
            case 0:

                break;
            case 1:

                break;
            case 2:

                break;
        }

    }
}
